//
//  XLChannelHeaderView.m
//  XLChannelControlDemo
//
//  Created by MengXianLiang on 2017/3/3.
//  Copyright © 2017年 MengXianLiang. All rights reserved.
//

#import "XLChannelHeader.h"

@interface XLChannelHeader ()
{
    UILabel *_titleLabel;
    
    UILabel *_subtitleLabel;
}
@end

@implementation XLChannelHeader

-(instancetype)initWithFrame:(CGRect)frame
{
    if (self = [super initWithFrame:frame]) {
        [self buildUI];
    }
    return self;
}

-(void)buildUI
{
    _titleLabel = [[UILabel alloc] initWithFrame:CGRectMake(ItemWidth * 30 , 0, [UIScreen zj_screenWith] - ItemWidth * 60, self.bounds.size.height)];
    _titleLabel.textColor = [UIColor textBlackColor];
    _titleLabel.font = LYPFONT(16);
    [self addSubview:_titleLabel];

}

-(void)setModel:(YBMeetingReturnHeadModel *)model
{
    _model = model;
    _titleLabel.text = [ToolClass returnNoNullStringWithString:model.CODE_NAME];
}

@end
